package com.tubang.component.entity;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.tubang.common.entity.BaseEntity;

/**
 * <p>
 * 公司表
 * </p>
 *
 * @author wsl
 * @since 2017-12-08
 */
@TableName("tb_company")
public class CompanyEntity extends BaseEntity<CompanyEntity> {

    private static final long serialVersionUID = 1L;

    /**
     * 父级编号
     */
	@TableField("parent_id")
	private String parentId;
    /**
     * 公司名称
     */
	private String name;
    /**
     * 排序
     */
	private BigDecimal sort;
    /**
     * 归属区域
     */
	@TableField("area_id")
	private String areaId;
    /**
     * 区域编码
     */
	private String code;
    /**
     * 机构类型
     */
	private String type;
	@TableField("type_desc")
	private String typeDesc;
    /**
     * 机构等级
     */
	private String grade;
    /**
     * 联系地址编号
     */
	@TableField("address_id")
	private String addressId;
    /**
     * 邮政编码
     */
	@TableField("zip_code")
	private String zipCode;
    /**
     * 负责人
     */
	private String master;
    /**
     * 电话
     */
	private String phone;
    /**
     * 传真
     */
	private String fax;
    /**
     * 邮箱
     */
	private String email;


	public String getParentId() {
		return parentId;
	}

	public CompanyEntity setParentId(String parentId) {
		this.parentId = parentId;
		return this;
	}

	public String getName() {
		return name;
	}

	public CompanyEntity setName(String name) {
		this.name = name;
		return this;
	}

	public BigDecimal getSort() {
		return sort;
	}

	public CompanyEntity setSort(BigDecimal sort) {
		this.sort = sort;
		return this;
	}

	public String getAreaId() {
		return areaId;
	}

	public CompanyEntity setAreaId(String areaId) {
		this.areaId = areaId;
		return this;
	}

	public String getCode() {
		return code;
	}

	public CompanyEntity setCode(String code) {
		this.code = code;
		return this;
	}

	public String getType() {
		return type;
	}

	public CompanyEntity setType(String type) {
		this.type = type;
		return this;
	}

	public String getTypeDesc() {
		return typeDesc;
	}

	public CompanyEntity setTypeDesc(String typeDesc) {
		this.typeDesc = typeDesc;
		return this;
	}

	public String getGrade() {
		return grade;
	}

	public CompanyEntity setGrade(String grade) {
		this.grade = grade;
		return this;
	}

	public String getAddressId() {
		return addressId;
	}

	public CompanyEntity setAddressId(String addressId) {
		this.addressId = addressId;
		return this;
	}

	public String getZipCode() {
		return zipCode;
	}

	public CompanyEntity setZipCode(String zipCode) {
		this.zipCode = zipCode;
		return this;
	}

	public String getMaster() {
		return master;
	}

	public CompanyEntity setMaster(String master) {
		this.master = master;
		return this;
	}

	public String getPhone() {
		return phone;
	}

	public CompanyEntity setPhone(String phone) {
		this.phone = phone;
		return this;
	}

	public String getFax() {
		return fax;
	}

	public CompanyEntity setFax(String fax) {
		this.fax = fax;
		return this;
	}

	public String getEmail() {
		return email;
	}

	public CompanyEntity setEmail(String email) {
		this.email = email;
		return this;
	}

	@Override
	public String toString() {
		return "Company{" +
			"parentId=" + parentId +
			", name=" + name +
			", sort=" + sort +
			", areaId=" + areaId +
			", code=" + code +
			", type=" + type +
			", typeDesc=" + typeDesc +
			", grade=" + grade +
			", addressId=" + addressId +
			", zipCode=" + zipCode +
			", master=" + master +
			", phone=" + phone +
			", fax=" + fax +
			", email=" + email +
			"}";
	}
}
